﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/TemplateAdmin.Master" AutoEventWireup="true" CodeBehind="changepassword.aspx.cs" Inherits="ProjectSem3.Admin.WebForm25" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        $('#form1').validate({
            rules: {
                <%=TextBoxPasswordCurrent.UniqueID %>: {
                    required: true
                },
                <%=TextBoxNewPassword.UniqueID %>: {
                    required: true
                }
            }
        });
    });
</script>

<style type="text/css">
    label.error
    {
        margin-left:107px;
        color:Red;
        }
</style>
<div style="width:360px; height:270px; margin:0 0 0 315px; background-color:rgb(195, 199, 188);; border-radius: 15px;">
    <div style="width:360px; background-color:#336600; height:35px; border-top-right-radius: 15px; border-top-left-radius: 15px;">
        <p style="color:#FFF; font-size:16px; text-align:center;">Change Password</p>
    </div>
    <div>
        <ul style="list-style-type: none; margin-top:20px;">
            <li>
                <asp:Label ID="Label1" runat="server" Text="Current Password"></asp:Label><asp:TextBox
                    ID="TextBoxPasswordCurrent" runat="server" style="margin-left:10px" 
                    TextMode="Password"></asp:TextBox>
                    <asp:Label ID="LabelKQ1" runat="server" ForeColor="Red" style="margin-left:100px;"></asp:Label>
            </li>
            <li>
                <asp:Label ID="Label2" runat="server" Text="New Password"></asp:Label><asp:TextBox
                    ID="TextBoxNewPassword" runat="server" style="margin-left:28px" 
                    TextMode="Password"></asp:TextBox>&nbsp
            </li>
            <li>
                <asp:Label ID="Label3" runat="server" Text="Confirm Password"></asp:Label><asp:TextBox
                    ID="TextBoxPasswordConfirm" runat="server" style="margin-left:9px" 
                    TextMode="Password"></asp:TextBox>
                    <asp:Label ID="LabelKQ2" runat="server" ForeColor="Red" style="margin-left:100px;"></asp:Label>
            </li>
            <asp:Label ID="LabelKQ3" runat="server" ForeColor="Red" style="margin-left:100px;"></asp:Label>
            <li>
                
                <asp:Button ID="ButtonSubmit" runat="server" Text="Submit" 
                    style="margin-left: 140px; margin-right: 0; margin-top: 20px;" 
                    onclick="ButtonSubmit_Click" />
            </li>
        </ul>
    </div>
</div>

</asp:Content>
